package com.wanhong.springboot.ssm.service.model.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author w_yu
 * @date 2020/11/30 11:52
 * @desc
 */
@Data
public class AddOrModifyUpdateUserRequest {

    private Long id;

    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "昵称不能为空")
    private String nickName;

    @NotBlank(message = "角色id")
    private List<Long> roleIds;


}
